﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.AcquisitionContext;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.AcquisitionContext
{
    /// <summary>
    /// 采集会话仓储接口
    /// </summary>
    public interface IAcquisitionSessionRepository : IAggRootRepository<AcquisitionSession>
    {
        #region # 分页获取采集会话列表 —— ICollection<AcquisitionSession> FindByPage(Guid? acquisitionRuleId...
        /// <summary>
        /// 分页获取采集会话列表
        /// </summary>
        /// <param name="acquisitionRuleId">采集规则Id</param>
        /// <param name="processId">工艺Id</param>
        /// <param name="processSegmentId">工艺段Id</param>
        /// <param name="executionPlanId">作业计划Id</param>
        /// <param name="workOrderId">工单Id</param>
        /// <param name="active">是否活动</param>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>采集会话列表</returns>
        ICollection<AcquisitionSession> FindByPage(Guid? acquisitionRuleId, Guid? processId, Guid? processSegmentId, Guid? executionPlanId, Guid? workOrderId, bool? active, DateTime? startTime, DateTime? endTime, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
